package pay.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.AllArgsConstructor;

import java.math.BigDecimal;

@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("refund_rules") // 根据实际情况调整表名
public class RefundRulesEntity {
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @TableField(value = "`desc`")
    private String desc;

    @TableField(value = "hours")
    private Integer hours;

    @TableField(value = "percent")
    private BigDecimal percent;

    /**
     * 退款时间类型
     * 1 报名截止前xx小时
     * 2 比赛开始前xx小时
     * 3 支付成功后xx小时
     */
    @TableField(value = "time_type")
    private Integer timeType;

    @TableField(value = "show_desc")
    private String showDesc;

    @TableField(value = "is_public")
    private Integer isPublic;
}